package com.tgu.home_action.service.admin;

import com.tgu.home_action.pojo.Client;
import com.tgu.home_action.pojo.Page;
import com.tgu.home_action.pojo.ResponseData;
import org.yaml.snakeyaml.constructor.DuplicateKeyException;

public interface AdminClientService {
    /**
     * 查询第三方应用
     */
    ResponseData<Page<Client>> getClients(Client client);

    /**
     * 添加第三方应用
     */
    ResponseData<Client> addClient(Client client) throws DuplicateKeyException;

    /**
     * 修改第三方应用
     */
    ResponseData<Client> updateClient(Client client);

    /**
     * 删除第三方应用
     */
    ResponseData<Client> delClient(Integer clientId);
}
